package cn.gmph.blog.admin.web.dto;

import java.util.List;

import cn.gmph.core.base.DTO;

public class QueryDTO extends DTO {
    private Long       id;
    private Integer    pageSize = Integer.valueOf(20);
    private Integer    pageNo   = Integer.valueOf(0);
    private List<Long> idList;
    private String     sortkey;

    public String getSortkey() {
        return this.sortkey;
    }

    public void setSortkey(String sortkey) {
        this.sortkey = sortkey;
    }

    public int getOffset() {
        return this.pageNo.intValue() * this.pageSize.intValue();
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<Long> getIdList() {
        return this.idList;
    }

    public void setIdList(List<Long> idList) {
        this.idList = idList;
    }

    public Integer getPageNo() {
        return this.pageNo;
    }

    public void setPageNo(Integer pageNo) {
        this.pageNo = pageNo;
    }

    public Integer getPageSize() {
        return this.pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}